package com.itcast.common.constant;

/**
 * 支付相关常量
 *
 * @author itcast
 * @create 2023/11/7 17:46
 **/
public class RedisConstants {
    /**
     * 用户端订单滚动分页查询
     */
    public static final String ORDER_PAGE_QUERY = "ORDERS:PAGE_QUERY:PAGE_%s";

    /**
     * 用户端订单详情查询
     */
    public static final String ORDER_DETAIL = "ORDERS:DETAIL:%s";


    public static final class CacheName {
        /**
         * 套餐缓存
         */
        public static final String SET_MEAL = "HEALTH:SET_MEAL";

        /**
         * 用户端订单滚动分页查询
         */
        public static final String ORDER_DETAIL = "HEALTH:ORDER_DETAIL";
    }

    public static final class CacheManager {
        /**
         * 缓存时间永久
         */
        public static final String FOREVER = "cacheManagerForever";

        /**
         * 缓存时间永久
         */
        public static final String THIRTY_MINUTES = "cacheManager30Minutes";

        /**
         * 缓存时间1天
         */
        public static final String ONE_DAY = "cacheManagerOneDay";
    }
}
